from base.shared.JenaException import JenaException


class CannotEncodeCharacterException(JenaException):

    def __init__(self, badChar, encodingContext):
        super().__init__("cannot encode (char) " + badChar + " in context " + encodingContext)
        self.badChar = badChar
        self.encodingContext = encodingContext
